﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Abp.Net.Mail;
using Abp.Threading;
using pandx.Mulan.Configuration;
using pandx.Mulan.Settings.Host.Dto;

namespace pandx.Mulan.Settings
{
    public abstract class SettingsAppServiceBase:MulanAppServiceBase
    {
        private readonly IEmailSender _emailSender;
        private readonly IAppConfigurationAccessor _configurationAccessor;
        protected SettingsAppServiceBase(IEmailSender emailSender,IAppConfigurationAccessor configurationAccessor)
        {
            _emailSender = emailSender;
            _configurationAccessor = configurationAccessor;
        }

        #region Send Test Email

        public async Task SendTestEmailAsync(SendTestEmailInput input)
        {
            await _emailSender.SendAsync(input.EmailAddress, "Test Email", "This is a Test Email!",false);
        }

      

        #endregion
    }
}

